public class P2_Tryinherit{
	public static void main(String args[]){
		B b = new B();
		System.out.println(b.x);
		//若子类B有自己的x成员，输出的x是谁
	}
}

class A{
	int x = 5;
}

class B extends A{
	int x = 13;
	B(){
		System.out.println(x);
		x = 10;
	}
}